home *** CD-ROM | disk | FTP | other *** search
- CHOOSE 4.1 TECHNICAL NOTES SAPPHIRE SOFTWARE
-
-
- CHOOSE Version 4.1
- TECHNICAL NOTES
-
-
- CHOOSE lets you generate custom menus from batch files. With
- CHOOSE, you can create Super easy to use, multiple choice
- menus, or a single-item menu that respond to a YES/NO answer.
- Your CHOOSE batch files can provide lists of different
- applications or programs, ask if you'd like to park the hard
- disk upon exiting a utility, or issue any other prompt for
- action.
-
-
- COMMANDS AND PARAMETERS:
-
- Creating a menu is easy with CHOOSE. Just enter the following
- command and parameter list as shown below:
-
- CHOOSE (1st_menu_item) (2nd_menu_item) (nth_menu_item)
-
-
- Parenthesis are not necessary. Separate menu items with a
- single space. Use underscore marks (_) to enter multiple word
- menu item, such as "backup_disk". If you enter parameters
- that are too similar, CHOOSE displays the following error
- message:
-
- ERROR: Parameters too similar.
-
-
- Find a new name for one of the choices and re-enter the
- parameters. (If you forget how CHOOSE works, just type CHOOSE
- at any DOS prompt and you will get instant help.)
-
-
- YES/NO PROMPTS:
-
- If you specify only one menu item in the command line, CHOOSE
- assumes that you want a YES/NO question prompt. In this case,
- CHOOSE automatically displays a question mark with the single
- prompt. You may then type Y to answer Yes to this prompt.
- Your answer appears in highlighted characters. No is the
- default answer and may be entered by pressing N or any other
- key.
-
- For example, to have a batch file automatically ask if you'd
- like the hard disk parked, enter the following CHOOSE command
- line in the appropriate batch file:
-
- CHOOSE Do_you_want_to_park_the_disk
-
- When you run this batch file, the following prompt appears:
-
- Do you want to park the disk?
-
-
- Type Y or N. Your choice then appears in highlighted
- characters.
-
-
- MULTIPLE CHOICE MENUS:
-
- To create custom CHOOSE menus that display multiple choices,
- enter two or more menu parameters in the command line. You
- may enter any number of items, and layer menus to any depth.
- For example, you can set-up menus to choose a word processing
- application from a list of applications, and then select a
- specific word processor from a list of many. When you run the
- batch file with the command line, CHOOSE displays the word
- "SELECT" and the menu choices. The first unique letter in
- each choice is highlighted. For example, enter the following
- command line to select one of four programs:
-
- CHOOSE DiskTach Lotus_123 WordStar Demon_Wars
-
-
- When you run the batch file with this command, CHOOSE displays
- the following prompt:
-
- Select: DiskTach, Lotus 123, WordStar or Demon Wars.
-
-
- The "D" in the first item, the "L" in the second, the "W"
- in the third, and the "e" in the fourth are all highlighted
- and you may choose an item by typing this highlighted letter.
- To exit any menu without making a choice, press the ESC
- (escape) key.
-
-
- COMMAND LINE PARAMETERS:
-
- The /? parameter may be entered with CHOOSE to ask for instant
- help.
-
- The /v parameters (means "vertical") may be entered at the end
- of the command line for a vertical display. For example, for
- a vertical menu of three Sapphire Software programs, enter
- the following:
-
- CHOOSE VidLib DiskTach Remind /v
-
- The CHOOSE display now looks like this:
-
- Select: VidLib,
- DiskTach
- or Remind.
-
- Note: If you specify more choices than would fit on a single
- line, the /v mode is entered automatically.
-
-
- SAMPLE BATCH FILE:
-
- The following batch file is included as an example of how to
- create a CHOOSE menu. In the example, the CHOOSE menu lets
- you choose between several useful programs.
-
- echo off
- :top
- cls
- choose Turbo_Pascal WordStar Lotus_123 Exit_to_DOS
- if errorlevel 4 goto end
- if errorlevel 3 goto lo
- if errorlevel 2 goto ws
- if errorlevel 1 goto pas
- goto top
- :pas
- cd c:\turbo
- turbo
- goto top
- :ws
- choose Do_you_want_TurboLightning
- if errorlevel 1 goto tlyes
- goto skip
- :tlyes
- cd c:\light
- light
- :skip
- cd c:\wp
- ws
- goto top
- :end
-
-
-
- CHOOSE is a copyright of Sapphire Software (c) 1987.
-
- Sapphire Software - every program's a gem.
-
- Other Sapphire Software programs are available to customize
- and personalize your computer. These programs are available
- via ShareWare, or direct from Sapphire Software. If you like
- this program and find it useful, give a copy to a friend.
- Then show your support for low-cost quality software by
- sending a check for a measly $5.00 made out to:
-
-
- Sapphire Software
- Suite 166
- 4141 Ball Road
- Cypress, CA 90630-3465
-
- We encourage you to copy this program to other bulletin
- boards, and freely give it to all your friends and enemies.
-
- WARRANTY
-
- Please note that changes or alterations to this program of any
- kind are not authorized by Sapphire Software. The software
- must be distributed as is. Sapphire Software makes no
- warranty about this program as regards its suitability for any
- purpose, or its ability to perform under conditions not set
- down in the program documentation. By using this program, the
- user agrees that Sapphire Software shall not be liable for any
- damages in connection with or arising from use of this
- program.